//
//  WSQHelper.h
//  WSQOCTools
//
//  Created by 翁胜琼 on 2018/11/19.
//  Copyright © 2018 Dev John. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface WSQHelper : NSObject

// 获取 label 的大小
+ (CGSize)getLabelSiex:(NSString *)text font:(UIFont *)font maxSize:(CGSize)maxSize;
// 从 storybboard 中获取 viewcontroller
+ (__kindof UIViewController *)getViewControllerFromStoryboard:(NSString *)storyboardName withID:(NSString *)ID;
// 从 Main.storyboard 中获取 viewcontroller
+ (__kindof UIViewController *)getViewControllerFromMainStoryboard:(NSString *)ID;
// 获取设备型号然后手动转化为对应名称
+ (NSString *)getDeviceName;
// 获取系统版本
+ (NSString *)getAppVersion;

// 字典转json字符串方法
+(NSString *)dictConvertToJsonData:(NSDictionary *)dict;
// 数组转json
+(NSString *)arrayConvertToJsonData:(NSArray *)array;


@end

NS_ASSUME_NONNULL_END
